package com.xyazm.product.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xyazm.common.domain.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品sku记录表
 * </p>
 *
 * @author xuyou
 * @since 2022-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ProductSku对象", description = "商品sku记录表")
@TableName("product_sku")
public class ProductSkuDO extends BaseDO implements Serializable {


    @ApiModelProperty(value = "商品编号")
    @TableField("product_id")
    private String productId;

    @ApiModelProperty(value = "商品类型 1:普通商品,2:预售商品")
    @TableField("product_type")
    private Integer productType;

    @ApiModelProperty(value = "商品SKU编码")
    @TableField("sku_code")
    private String skuCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "商品图片")
    @TableField("product_img")
    private String productImg;

    @ApiModelProperty(value = "商品单位")
    @TableField("product_unit")
    private String productUnit;

    @ApiModelProperty(value = "销售价格(分)")
    @TableField("sale_price")
    private Integer salePrice;

    @ApiModelProperty(value = "采购价格(分)")
    @TableField("purchase_price")
    private Integer purchasePrice;


}
